package com.model;

import java.util.Date;

public class Orderitem {
	private String oiid;//子订单号
	private String oid;//订单号
	private Integer uid;//用户id
	private Integer pid;//商品id
	private Integer eid;//员工id
	private String pname;//商品名称
	private String pimage;//商品图片地址
	private Double pprice;//商品单价（预定时）
	private Double weight;//重量
	private Double tprice;//总价
	
	public Orderitem() {
		super();
	}

	public Orderitem(String oiid, String oid, Integer uid, Integer pid, Integer eid, String pname, String pimage,
			Double pprice, Double weight, Double tprice) {
		super();
		this.oiid = oiid;
		this.oid = oid;
		this.uid = uid;
		this.pid = pid;
		this.eid = eid;
		this.pname = pname;
		this.pimage = pimage;
		this.pprice = pprice;
		this.weight = weight;
		this.tprice = tprice;
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public String getOiid() {
		return oiid;
	}

	public void setOiid(String oiid) {
		this.oiid = oiid;
	}

	public String getOid() {
		return oid;
	}

	public void setOid(String oid) {
		this.oid = oid;
	}

	public Integer getEid() {
		return eid;
	}

	public void setEid(Integer eid) {
		this.eid = eid;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public String getPimage() {
		return pimage;
	}

	public void setPimage(String pimage) {
		this.pimage = pimage;
	}

	public Double getPprice() {
		return pprice;
	}

	public void setPprice(Double pprice) {
		this.pprice = pprice;
	}

	public Double getWeight() {
		return weight;
	}

	public void setWeight(Double weight) {
		this.weight = weight;
	}

	public Double getTprice() {
		return tprice;
	}

	public void setTprice(Double tprice) {
		this.tprice = tprice;
	}

	@Override
	public String toString() {
		return "Orderitem [oiid=" + oiid + ", oid=" + oid + ", uid=" + uid + ", pid=" + pid + ", eid=" + eid
				+ ", pname=" + pname + ", pimage=" + pimage + ", pprice=" + pprice + ", weight=" + weight + ", tprice="
				+ tprice + "]";
	}
 
}
